<?php
namespace App\Exceptions;

use Exception;

class NotFoundException extends Exception {
    protected $message = 'Resource not found';
    protected $code = 404;
    
    public function __construct($message = null) {
        if ($message !== null) {
            $this->message = $message;
        }
        parent::__construct($this->message, $this->code);
    }
}